//
//  PhoCollectionCell.m
//  时尚男士
//
//  Created by dlios on 15-6-12.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "PhoCollectionCell.h"

@implementation PhoCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.myImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height)];
        self.myImage.clipsToBounds = YES;
        self.myImage.backgroundColor = [UIColor orangeColor];
        [self.myImage setContentScaleFactor:[[UIScreen mainScreen] scale]];
        self.myImage.contentMode =  UIViewContentModeScaleAspectFill;
        self.myImage.autoresizingMask = UIViewAutoresizingFlexibleHeight;
        
        [self.contentView addSubview:self.myImage];
        
        self.fontView = [[UIView alloc] initWithFrame:self.myImage.bounds];
        self.fontView.backgroundColor = [UIColor blackColor];
        self.fontView.alpha = 0.2f;
        [self.contentView addSubview:self.fontView];
        
        
        self.mylabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.myImage.bounds.size.height - 23, self.myImage.bounds.size.width - 10, 20)];
        self.mylabel.textColor = [UIColor whiteColor];
        
        [self.contentView addSubview:self.mylabel];
        
    }
    return self;
}

@end
